<?php
$db = new PDO('mysql:host=localhost;dbname=db3','root','12qwas');
$ps=$db->query('select name from students limit 1');
var_dump($ps->fetch());
var_dump($ps->fetch());